package com.dtsw.jx;

import com.dtsw.jx.conf.ConfMessage;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
//powershell 执行参数需要加双引号，可以执行换日志级别参数
//java "-Dlog4j.configurationFile=D:\git_res\bigdata\java\target\log4j2.xml" -cp jx_socket_alarm_client-1.0.jar com.dtsw.jx.Test
public class Test {
    private static final Logger log = LogManager.getLogger(Test.class.getName());
    public static void main(String[] args) {
        log.debug("这是个测试debug日志功能");
        log.info("这个是测试info日志功能");
        log.warn("这个是测试warn日志功能");
        System.out.println("测试问题");
        ConfMessage confMessage=new ConfMessage("src/main/resources/zx.properties");
    }
}
